package com.huiminpay.paymentagent.api;

import com.huiminpay.common.cache.domain.BusinessException;
import com.huiminpay.paymentagent.api.conf.AliConfigParam;
import com.huiminpay.paymentagent.api.dto.AlipayBean;
import com.huiminpay.paymentagent.api.dto.PaymentResponseDTO;

/**
 * 与第三支付渠道进行交互
 * Created by Administrator.
 */
public interface PayChannelAgentService {
    /**
     * 调用支付宝手机WAP下单接口
     * @param aliConfigParam 支付渠道参数
     * @param alipayBean 请求支付参数
     * @return 支付响应结果
     * @throws BusinessException
     */
    PaymentResponseDTO createPayOrderByAliWAP(AliConfigParam aliConfigParam, AlipayBean alipayBean) throws BusinessException;


    /**
     * 调用支付宝手机WAP查询接口，查询支付宝交易状态
     * @param aliConfigParam 支付渠道参数
     * @param outTradeNo 商户订单号
     * @return 支付响应结果
     * @throws BusinessException
     */
    PaymentResponseDTO queryPayOrderByAliWAP(AliConfigParam aliConfigParam, String outTradeNo) throws BusinessException;
}
